import './styles/common.scss'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
// import 'element-plus/theme-chalk/el-message.css'//让ELMessage有样式
// import 'element-plus/theme-chalk/el-message-box.css'//让ELMessage有样式
import 'element-plus/theme-chalk/index.css'//让ELMessage有样式
import App from './App.vue'
import router from './router'
import { lazyLoadPlugin } from './directives'
import { componentPlugin } from './components'

import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

const app = createApp(App)
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

app.use(pinia)
app.use(router)
app.use(lazyLoadPlugin)
app.use(componentPlugin)
app.mount('#app')

